Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: export meta backup metrics #4480

Merged
merged 2 commits into from
Mar 11, 2024
Merged

metrics: export meta backup metrics #4480

merged 2 commits into from
Mar 11, 2024

Conversation

zhijian-pro
Copy link
Contributor

@zhijian-pro zhijian-pro commented Mar 11, 2024

close #4454

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.34%. Comparing base (eeac617) to head (9602f80).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4480      +/-   ##
==========================================
- Coverage   55.37%   55.34%   -0.03%     
==========================================
  Files         157      157              
  Lines       41207    41222      +15     
==========================================
- Hits        22819    22816       -3     
- Misses      15859    15881      +22     
+ Partials     2529     2525       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/vfs/backup.go Outdated Show resolved Hide resolved
pkg/vfs/backup.go Outdated Show resolved Hide resolved
pkg/vfs/backup.go Outdated Show resolved Hide resolved
logger.Infof("backup metadata succeed, used %s", time.Since(now))
} else {
logger.Warnf("backup metadata failed: %s", err)
}
LastBackupDurationG.Set(time.Since(now).Seconds())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a label to indicate success/failure?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can know that when last_sucessfull_backup is not updated.

@davies davies merged commit c4a7bd9 into main Mar 11, 2024
26 checks passed
@davies davies deleted the backup-metrics branch March 11, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emit metrics when metadata backup finishes
3 participants